package com.gdip.service;

import com.gdip.common.dtos.ResponseResult;
import com.gdip.dto.ProblemDTO;
import com.gdip.dto.ReplyDTO;

public interface ProblemService {
    ResponseResult addProblem(ProblemDTO problemDTO, Integer userId);

    ResponseResult listProblem(Integer userId);

    ResponseResult replyProblem(ReplyDTO replyDTO, Integer userId);

    ResponseResult listTeacherProblems(Integer userId);

    ResponseResult getClasses();

    ResponseResult getTypes();

    ResponseResult getHistory(Integer userId);

    ResponseResult getProblemReply(Integer userId);

    ResponseResult listReply(Integer userId);

    ResponseResult rollback(Integer id);



    ResponseResult findProblemsByTitleAndCreateTime(String title);

    ResponseResult getBackProblems();

    ResponseResult updateClass(ProblemDTO problemDTO);
}
